#ifndef __CU_SFTP_H__
#define __CU_SFTP_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include <stdbool.h>

typedef struct cu_sftp_t {
    char *ip;
    char *port;
    char *username;
    char *password;
}cu_sftp_t;


cu_sftp_t *cu_sftp_init(const char *ip, const char *port, const char *username, const char *password);
bool cu_sftp_upload(cu_sftp_t * cu_sftp_handle, const char *remote_file_path, const char *local_file_path, bool resume);
bool cu_sftp_download(cu_sftp_t * cu_sftp_handle, const char *remote_file_path, const char *local_file_path);
bool cu_sftp_destroy(cu_sftp_t * cu_sftp_handle);

#endif // __CU_SFTP_H__